#! /bin/bash
#\
mount /dev/sr0 /mnt > /dev/null
echo "/dev/sr0   /mnt  iso9660    defaults    0 0" >> /etc/fstab
mkdir /bak 
mv /etc/yum.repos.d/* /bak
cat << eof > /etc/yum.repos.d/base.repo
[base]
name=base
baseurl=file:///mnt
enabled=1
gpgcheck=0
eof
yum clean all > /dev/null
yum repolist
